 <{extends file="<{$tempdir}>/public/site.html"}>  
 <{block name=sitetitle}><{$shopinfo['shopname']}><{/block}>
<{block name=extendcss}><link rel="stylesheet" type="text/css" href="<{$siteurl}>/templates/<{$tempdir}>/public/css/platshow.css">
<{/block}>
<{block name=extendjs}> 
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/plateshop.js" type="text/javascript" language="javascript"></script>
<script>
	var shopid = '<{$shopinfo['id']}>';
	</script>
<{/block}>
<{block name=shopmenu}>
 <div class="top1_shop">
 	 <div style="width:50px;float:left;"><a href="#"><img  class="lazy"  src="<{$siteurl}>/upload/shop/grey.gif" data-original="<{$imgserver}><{$shopinfo['shoplogo']|default:$shoplogo}>" width="50px" height="50px"></a></div>
 	 <div style="padding-left:30px;float:left;height:50px;">
 	 	  <div class="topshopname">  <{$shopinfo['shopname']}></div>
 	 	  <div>
 	 	  	   <div class="MIL2Left" style="height:20px;line-height:20px;width:110px;">      
 	 	  	   	 <span class="Star_g " original-title="<{$shopinfo['point']}>" style="margin:0px 0px 0px 0px;">
                             <span class="Star_y" style="width:<{$shopinfo['point']*20}>%;"></span>
             </span>
             <a href="javascript:;" style="line-height:15px;font-weight:normal;padding:0 2px;"><{$shopinfo['point']}>.0</a>
             
            </div>
            <{if $shopopeninfo['opentype'] ==2 || $shopopeninfo['opentype']==3}> <span class="yingye">营业中</span><{else}><span class="xiuxi">休息中</span><{/if}>
           
      </div>
  	</div>
 	</div>
 <div class="top1_shopmenu">
	 	  <div class="Menubox_01">
                    <ul>
                        <li class="hover"><a href="javascript:;">菜单</a></li> 
                        <li><a href="javascript:;" >餐后点评</a></li>
                        <li><a href="javascript:;" >用户留言</a></li>
                        <li id="one4" class="" original-title="暂未开放，敬请期待！"><a href="javascript:;">店铺介绍</a></li>
                    </ul>
          </div>
 </div>
<{/block}>
<{block name=shophide}><{/block}>
<{block name=bodylist}>  
<div class="hc_content">

	<div class="basicinfo">
    <div class="b-img ">
             <img width="198" height="150" style="width:198px; height:150px;" src="<{$imgserver}><{$shopinfo['shoplogo']|default:$shoplogo}>" alt="<{$shopinfo['shopname']}>">
   </div>
<div class="b-info "  >
<h2><{$shopinfo['shopname']}></h2>
<dl>
<dt>	<{foreach from=$mainattr item=itat}>
									  <{if $itat['id']=='51'}> 
									   
									      <{foreach from=$itat['det'] item=itdd}>
									          <{foreach from=$shopattr item=itaa}>
									            <{if $itdd['id'] == $itaa['attrid']}> 
									            <{$itdd['name']}>,
									            <{/if}>
									          <{/foreach}> 
									      <{/foreach}> 
									  <{/if}>     
									<{/foreach}> 
									
									<span class="rate">
<span class="">

<div class="hc_xinxin_div" > <span class="Star_g " original-title="<{$shopinfo['point']*20}>" style="margin:0px 0px 0px 0px;"> <span class="Star_y" style="width:<{$shopinfo['point']*20}>%;"></span> </span> </div>

</span>
</span>
<{$shopinfo['point']}>.0分
									</dt>
									
									<dd class="rate-con">
</dd>

<dd class="rate-con">
<span class="rate">
<span class="rate-inner" style="width:0px"></span>
</span>
</dd>
</dl>
<dl style="margin-top:15px;">
<dt><i class="icon icon-time"></i>营业时间:&nbsp;</dt>
<dd>
<{$shopinfo['starttime']}>
 
	<{if $shopopeninfo['opentype']==3}> 				                  
	<strong class="doing">接受预订</strong>
	<{else if  $shopopeninfo['opentype'] ==2 }>
	<strong class="doing">[营业中]</strong>
	<{else}>
	<strong class="doing">已打烊</strong>
	<{/if}>

</dd>
</dl>
<dl>
<dt><i class="icon icon-address"></i>商户地址:&nbsp;</dt>
<dd>
<{$shopinfo['address']}>
</dd>
</dl>


</div>



</div>
<div style="clear:both;"></div>
 


	 
	<div class="shopshow_content">
		 <div class="goods_div">
		 	  <div class="goodsh1"> 菜单<div class="changelisttype"><span class="wordli">&nbsp;&nbsp;</span><span class="imglion">&nbsp;&nbsp;</span></div></div>
		 	  <div class="goodsnav">
		 	  	   <a href="#" class="on">所有</a>
		 	  	   <{foreach from=$goodstype  item=items}>  
			           <a href="javascript:;" onclick="scollto('#typeid_<{$items.id}>')"><{$items.name}></a>
			       <{/foreach}>  
		 	  </div>
		 	  <div class="goodslistimgtype" id="goodslist">
		 	  	 <{foreach from=$goodstype key=cid item=items}> 
		 	 
		 	  	  	   <div class="goodstypetitle" id="typeid_<{$items['id']}>"><{$items['name']}></div>
		 	  	  	   <div class="goodstypelist">
		 	  	  	   	  <ul>
		 	  	  	   	  		<{foreach from=$items['det'] key=mykey item=value}>
							
		 	  	  	   	  	 <li class="<{if $mykey%3==1}>middle<{/if}> goodsli">
		 	  	  	   	  	 	  <div class="goodsimg"><img style="width:280px; height:180px;"  class="lazy"  src="<{$siteurl}>/upload/shop/grey.gif" data-original="<{$imgserver}><{$value['img']|default:$shoplogo}>"></div>
		 	  	  	   	  	    <div class="goodsname"><{$value['name']}></div>
		 	  	  	   	  	    <div class="goodscost"><{$value['cost']}>元<{if !empty($value['goodattr'])}>/<{$value['goodattr']}><{else}>/<{$shopinfo['goodattrdefault']}><{/if}></div>
		 	  	  	   	  	    <div class="goodsbiaotian">&nbsp;
		 	  	  	   	  	    	  <{assign var=goodssignlist value=","|explode:$value['signid']}>  
                                                            	      <{foreach from=$goodssignlist key=mytestid item=goodssi}>
                                                            	         <{if $mytestid < 5 && !empty($goodssi) && isset($goodsattr[$goodssi])}> 
                                                            	           <img src="<{$goodsattr[$goodssi]}>"/>
                                                            	            <{/if}> 
                              <{/foreach}> 
                              
		 	  	  	   	  	    </div>
		 	  	  	   	  	    <div class="goodsscore">
                                                          <span class="Star_g " original-title="<{$value['point']}>分">
                                                            	<{if $value['point'] != 0}> 
                                                            	<{assign var=long value=$value['point']*20}>
                                                            	<{else}> 
                                                            	<{assign var=long value="100"}>
                                                            	<{/if}> 
                                                                <span class="Star_y" style="width:<{$long}>%;"></span>
                                                </span>
                                                           
                           </div>
                          <div class="goodstj">
                    &nbsp;&nbsp;&nbsp;  售<font class="fontbold"><{$value['sellcount']}></font><{if !empty($value['goodattr'])}><{$value['goodattr']}><{else}><{$shopinfo['goodattrdefault']}><{/if}>,<font class="fontbold"><{$value['point']}></font>点评
                          </div>
		 	  	  	   	  	    <div class="goodsbtn"><{if $value['count'] < 1}><a href="javascript:void(0);"  class="sellout"  >已售完</a><{else}><a href="javascript:void(0);"   class="onsell" have_det="<{$value['have_det']}>" shopid="<{$value['shopid']}>" goodsid="<{$value['id']}>" >来一<{if !empty($value['goodattr'])}><{$value['goodattr']}><{else}><{$shopinfo['goodattrdefault']}><{/if}></a><{/if}></div>
		 	  	  	   	  	 </li>
							 

		 	  	  	   	  	 	<{/foreach}>
		 	  	  	   	  	 	 
		 	  	  	   	  	</ul>
		 	  	  	   </div>
		 	  	  	   <div style="clear:both;"></div> 
		 	  	  
		 	  	  <{/foreach}>  
		 	  	  
		 	  </div>
		 </div> 
		<div class="goods_div" style="display:none;" >
		    <div class="pingjialist" id="det_commm">
		    </div>
	   </div>
		 <div class="goods_div" style="display:none;"  >
			     <div class="Message">
                                <form action="" id="mform" name="mform" method="POST">
                                <input type="hidden" name="msid" id="msid" value="40">
						                      	<ul>
                                	<li>
                                    	<div class="MInput">
                                        	<div class="MITop"><textarea id="MContent" name="mcon" onclick="InFocus(this);" onblur="outF(this);" style="color:rgb(92, 91, 91);" data="您的留言对其他会员都是很重要的参考">您的留言对其他会员都是很重要的参考</textarea></div>
                                            <div class="MIBottom"><a href="javascript:;" onclick="AddMessage()" id="msgbtn">提交留言</a> <span class="ImpNum">最多200个字符</span></div>
                                        </div>
                                    </li>
                                </ul>
                                </form>
                            </div>
            <div id="showaskid">
            	
            </div>
            <div style="clear:both;"></div>
	   </div>
	   <div class="goods_div" style="display:none;">
	   	  <div class="showshop_instr">
	   		<{$shopinfo['intr_info']|htmlspecialchars_decode}>&nbsp;
	   	 </div>
	   </div>
		 <!--  购物车-->
   	 <div class="shopshow_cart">
   	 	    <div class="cart_title"><i></i>我的菜篮子</div>
   	 	    <div class="cartgoodslist">
   	 	    	 <ul>
   	 	    	 	<li style="display:none;">
   	 	    	 	  <div class="cart_one"><div class="cart_goodsname">商品名称范德萨减肥的了撒娇范德萨</div><i></i></div>
   	 	    	 	  <div class="cart_tow">
   	 	    	 	      <span class="cp_pre">-</span>
   	 	    	 	      <input type="text" readonly="readonly" class="cinput" value="4">
   	 	    	 	      <span class="cp_next">+</span>
   	 	    	 	      <span class="cp_much">￥255</span>
   	 	    	 	  </div>	
   	 	    	 	</li>
   	 	    	 	 
   	 	    	</ul>
   	 	    </div>
   	 	    <div class="cart_bottom">
   	 	    	  <div class="cart_tj">
   	 	    	  	 <div class="cart_sum"><label>商品总价</label><span>100.00元</span></div>
   	 	    	  	
   	 	    	  	</div>
   	 	    	   <input type="button" class="next bg" value="下一步" onclick="outdiv_cart()">
   	 	    </div>
	   </div>
	  <!--购物车-->
	  <div style="clear:both;"></div> 
	</div>
	
	
	
	
	 <div style="clear:both;"></div>
	
	
	
	
</div> 


  <div id="product_one" class="cart_products_list" style="width:260px;display:none;"> 
    <div class="cart_products_title" onclick="closeproductdiv();">
	     <span  >X</span>
	</div> 
	 <div   class="productloding">
	      数据加载中....
	</div>
	<div    class="cart_products_content_area">
	 
	
	      
	</div> 
</div>
<script>
	var locationfalse = false;
	var allowedguestbuy = 1;
	var personcount = <{$shopinfo['personcount']|default:'0'}>;
	
	var cartouthtml = '';
	cartouthtml +='<form id="dosubmit"><div class="position_top"><span class="title">点单预订</span><i class="close" onclick="close_pop(\'goosshow\')"></i></div>';
	cartouthtml +='<div class="goodsshow" ></div>';
  cartouthtml +='<div class="position_middel">';
	cartouthtml +='<div class="line_class"><label>消费时间:</label><select name="minit"  id="minit"  style="width:180px;">';

  
							    <{foreach from=$pstimelist item=itk}>
									cartouthtml +='	<option value="<{$itk['value']}>"><{$itk['d']}> <{if !empty($itk['i'])}><{$itk['i']}><{else}><{$itk['s']}>-<{$itk['e']}><{/if}></option>'; 
								 <{/foreach}>  
  var tempcontent = '';
  for(var i=1;i<=personcount;i++){
  	tempcontent += '<option value="'+i+'">'+i+'人</option>';
  }
	cartouthtml+='</select></div>';
	cartouthtml +='<div class="line_class"><label>消费人数:</label><select name="personcount">'+tempcontent+'</select> </div>';
	cartouthtml +='<div class="line_class"><label>联系人:</label><input type="text" name="contactname" value="" placeholder="联系人姓名"> </div>';
	cartouthtml +='<div class="line_class"><label>联系电话:</label><input type="text" name="phone" id="phone" value="" ><span class="hc_order_lists_span" id="uphone" ></span> </div>';
  cartouthtml +='<div class="line_class" id="paytypeshow"><label>支付方式:</label><{if !( ( $open_acout == 0 || $shopinfo['is_onlinepay'] == 0 ) && ( $is_daopay == 0 || $shopinfo['is_daopay'] == 0 ) )}><{if $is_daopay == 1 && $shopinfo['is_daopay'] == 1 }><input type="radio" name="paytype" value="0" checked><span style="display:block;float:left;width:60px;">货到付款</span><{/if}><{if $open_acout == 1 && $shopinfo['is_onlinepay'] == 1 }><input type="radio" name="paytype" value="1"  <{if $is_daopay == 0 || $shopinfo['is_daopay'] == 0 }>  checked  <{/if}> ><span style="display:block;float:left;width:60px;">在线支付</span><{/if}><{else}><span style="display:block;float:left;width:60px;">未开启</span><{/if}><span class="hc_order_lists_span" ></span> </div>';
	cartouthtml +='<div class="mutile_class"><label>备注</label><textarea name="content" placeholder="备注"></textarea></div>';
	cartouthtml +='<div class="line_class">  <input type="hidden" name="shopid" value="<{$shopinfo['id']}>"><input type="hidden" name="subtype" value=""><input type="button" class="next bg" value="确认预订" id="cfbtn" onclick="onGo()"></div>';
	cartouthtml +='</div> </form>';
  		 var starttime = '<{$shopinfo['starttime']}>'; 
	 var is_orderbefore=<{$shopinfo['is_orderbefore']}>;
	 var nowdate = '<{time()|date_format:"%Y-%m-%d"}>';
	 var nowtime = '<{time()|date_format:"%Y-%m-%d %H:%M:%S"}>';
	 	var submithtml = '<{ofunc type=url link="/plate/makeorder/datatype/json/random/@random@"}>';
	  var orderhtml = '<{ofunc type=url link="/site/waitpay/orderid/@orderid@"}>';
	  <{$yanchitime = time()+$shopinfo['maketime']*60}>
	  var maketime = '<{$yanchitime|date_format:"%Y-%m-%d %H:%M:%S"}>';
	   	var submithtml = '<{ofunc type=url link="/plate/makeorder/datatype/json/random/@random@"}>';
	  var orderhtml = '<{ofunc type=url link="/site/waitpay/orderid/@orderid@"}>';
	</script>
 
 	
<{/block}>